﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="EnergyConsumptionDevelopment.aspx.cs"
    Inherits="RCREEE.Web.EnergyConsumptionDevelopment" Culture="auto" meta:resourcekey="PageResource1"
    UICulture="auto" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>Sitemap Handler</title>
    <script type="text/javascript">
        $().ready(function () {
            $('#dialogContent').dialog({
                autoOpen: false,
                modal: true,
                bgiframe: true,
                title: "Confirm Delete",
                width: 300,
                height: 200
            });
        });

        function deleteAction(uniqueID) {

            $('#dialogContent').dialog('option', 'buttons',
                {
                    "OK": function () { __doPostBack(uniqueID, ''); $(this).dialog("close"); },
                    "Cancel": function () { $(this).dialog("close"); }
                });

            $('#dialogContent').dialog('open');

            return false;
        }

    </script>
    <div id="header">
        <div id="section">
            <table width="100%">
                <tr>
                    <td width="20%" align="center" valign="middle">
                        <img src="Images/LogoRCREEE_Transparent.png" width="200px" />
                    </td>
                    <td width="60%" align="center" valign="middle">
                        <img src="Images/areeed-ba-txtr.png" width="600px" />
                    </td>
                    <td width="25%" align="center" valign="top">
                        <img src="Images/las-logo.png" width="85px" />
                    </td>
                </tr>
            </table>
        </div>
        <ul>
            <li><a href="Default.aspx">Home</a></li>
            <li><a href="Index.aspx">Index</a></li>
            <li><a href="Topics.aspx">Topics</a></li>
            <li><a href="CountrySelector.aspx">Countries</a></li>
            <li><a href="Aboutus.aspx">About Us</a></li>
            <li><a href="contactus.aspx">Contact us</a></li>
        </ul>
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <%--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 280px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">--%>
    <div>
        <asp:ScriptManager ID="scriptMan" runat="server">
        </asp:ScriptManager>
        <asp:UpdateProgress ID="Up1" runat="Server" AssociatedUpdatePanelID="updatePanel1">
            <ProgressTemplate>
                <div class="progressBackgroundFilter">
                </div>
                <div class="processMessage">
                    Loading...<br />
                    <br />
                    <img alt="Loading..." src="Images/Loading.gif" />
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
        <asp:UpdatePanel ID="updatePanel1" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <table class="style1" width="100%">
                    <tr>
                        <td>
                            <asp:Label ID="lblCountry" runat="server" Text="Country: " meta:resourcekey="lblCountryResource1" />
                            <asp:DropDownList ID="ddlCountries" runat="server" AutoPostBack="True" DataSourceID="odsCountries"
                                DataTextField="CountryName" DataValueField="CountryId" meta:resourcekey="ddlCountriesResource1"
                                OnSelectedIndexChanged="ddlCountries_SelectedIndexChanged">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            <asp:Panel ID="pnlItems" runat="server" GroupingText="Item">
                                <div align="left" style="width: 100%; text-align: top; overflow: auto; height: 300px;">
                                    <asp:TreeView ID="tvMasterItems" runat="server" OnSelectedNodeChanged="tvMasterItems_SelectedNodeChanged"
                                        meta:resourcekey="tvMasterItemsResource1">
                                        <SelectedNodeStyle BackColor="#0099FF" ForeColor="White" />
                                    </asp:TreeView>
                                </div>
                            </asp:Panel>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Panel ID="pnlDetails" runat="server" GroupingText="Details">
                                <asp:DetailsView ID="dvDetails" runat="server" CellPadding="4" EnableModelValidation="True"
                                    ForeColor="#333333" GridLines="None" Height="50px" Width="125px" OnItemUpdating="dvDetails_ItemUpdating"
                                    AutoGenerateEditButton="True" OnModeChanging="dvDetails_ModeChanging" OnItemUpdated="dvDetails_ItemUpdated"
                                    meta:resourcekey="dvDetailsResource1">
                                    <AlternatingRowStyle BackColor="White" />
                                    <CommandRowStyle BackColor="#FFFFC0" Font-Bold="True" />
                                    <FieldHeaderStyle BackColor="#FFFF99" Font-Bold="True" />
                                    <FooterStyle BackColor="#0268b0" Font-Bold="True" ForeColor="White" />
                                    <HeaderStyle BackColor="#0268b0" Font-Bold="True" ForeColor="White" />
                                    <PagerStyle BackColor="#CCCCCC" ForeColor="#990000" HorizontalAlign="Center" />
                                    <RowStyle BackColor="#EAEAEA" ForeColor="#333333" />
                                </asp:DetailsView>
                            </asp:Panel>
                            <br />
                        </td>
                    </tr>
                </table>
                <div>
                    <asp:ObjectDataSource ID="odsCountries" runat="server" SelectMethod="GetAllCountries"
                        TypeName="RCREEE.Library.DataManager">
                        <SelectParameters>
                            <asp:SessionParameter Name="LanguageCode" SessionField="LanguageCode" Type="Int32" />
                            <asp:Parameter DefaultValue="" Name="FirstItem" Type="String" />
                        </SelectParameters>
                    </asp:ObjectDataSource>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
<%--   
    </form>
</body>
</html>
--%>
